#define _CRT_SECURE_NO_WARNINGS
#include "List.h"

void TLTest1()
{
	TLNode* plist = TLInit();
	TLPushBack(plist, 1);
	TLPushBack(plist, 2);
	TLPushBack(plist, 3);
	TLPushBack(plist, 4);
	TLPrint(plist);

	TLPopBack(plist);
	TLPopBack(plist);
	TLPopBack(plist);
	TLPopBack(plist);
	TLPrint(plist);
}

void TLTest2()
{
	TLNode* plist = TLInit();
	TLPushFront(plist, 4);
	TLPushFront(plist, 3);
	TLPushFront(plist, 2);
	TLPushFront(plist, 1);
	TLPrint(plist);

	TLPopFront(plist);
	TLPrint(plist);
	TLPopFront(plist);
	TLPrint(plist);
	TLPopFront(plist);
	TLPrint(plist);
	TLPopFront(plist);
	TLPrint(plist);

}

int main()
{
	TLTest2();
	return 0;
}